<%@ page language="java"  pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>
<%String path=request.getContextPath(); %>
<w:define id="cid" bind="bean.catalogid"/>
<div class="easyui-panel" data-options="doSize:false,layoutH:47,border:false" style="margin:5px">
	<form method="post" action="/com/frame/metadata/wordbook/WorkbookPage@saveWrorkbook.page">
		<w:hidden bind="bean.id"/>
   		<w:hidden bind="new_"/>
		<div class="ui-formContent">
			<p>
				<label style="width:100px;text-align:right">所属目录：</label>
				<select id="workbooktree" name="bean.catalogid" class="easyui-combotree" style="width:200px;"  
       				data-options="url:'<%=path %>/com/frame/metadata/wordbook/WorkbookPage@loadCatalogs.page',required:true"></select> 
			</p>
			<w:equal bind="new_" value="true">
			<p>
				<label style="width:100px;text-align:right">字典编码：</label>
				<w:text bind="bean.code" styleClass="easyui-validatebox" dataOptions="required:true"  style="width:200px;"/>
			</p>
			</w:equal>
			<w:equal bind="new_" value="false">
			<p>
				<label style="width:100px;text-align:right">字典编码：</label>
				<w:write bind="bean.code"/>
			</p>
			</w:equal>
			<p>
				<label style="width:100px;text-align:right">字典名称：</label>
				<w:text bind="bean.name" styleClass="easyui-validatebox" dataOptions="required:true"  style="width:200px;"/>
			</p>
		</div>
		
	</form>
</div>
<div class="ui-buttonBar">
			<a href="#" class="easyui-linkbutton" iconCls="icon_save" 
			onclick="$w.doWinForm()">保 存</a>
			<a href="#" class="easyui-linkbutton" iconCls="icon_cancel" onclick="$w.closeCurrWin()">取 消</a>
</div>

<script>
window.setTimeout(function(){
$("#workbooktree").combotree("setValue","<%=cid%>");
},500);
</script>